package com.erebus.service;


import com.erebus.feignclient.ShopCartClient;
import com.erebus.model.dto.Cart;
import com.taobao.base.model.RestResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopcartService {


    @Autowired
    ShopCartClient shopCartClient;


    /**
     * 根据用户id查询购物车信息
     */
    public RestResponse<List<Cart>> getCart(int userId) {
        return shopCartClient.getCart(userId);
    }
}
